package com.dhcc.bpm.common.docNode;

import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Data;

import java.util.ArrayList;
import java.util.List;

/**
 * @ClassName ZtreeDoc
 * @Description 文档树
 * @Author sjm
 * @Date 2020/2/21 0021 15:16
 * @Version V1.0
 * @Copyright: 2020 东华软件 . All rights reserved.
 **/
@Data
public class ZtreeDoc implements ZtreeNode {


    /**
     * 编号
     */
    protected String code;

    /**
     * 父节点ID
     */
    protected String parentId;

    /**
     * 子孙节点
     */
    @JsonInclude(JsonInclude.Include.NON_EMPTY)
    protected List<ZtreeNode> children = new ArrayList<>();
}
